# -*- coding: utf-8 -*-
## This is the form asking the users to log in

<%inherit file="/base.mako"/>

<h1>Please Sign In</h1>

<%doc>
<form action="" method="post">
	<dl>
	  % if request.environ.get("FAILED_AUTHENTICATION") == "Temp":
	   <dt>Try later...</dt>
	  % elif request.environ.get("FAILED_AUTHENTICATION"):
	   <dt>Please provide a valid username/password.</dt>
	  % endif
	  
	  % if request.environ.get("FAILED_AUTHENTICATION_PENALTY"):
	   <dt>You can not try to login anymore for \
	   ${request.environ.get("FAILED_AUTHENTICATION_PENALTY")} seconds.</dt>
	  % endif
	  
		<dt>Username:</dt>
		<dd><input type="text" name="${login_name}"></dd>
		<dt>Password:</dt>
		<dd><input type="password" name="${password_name}"></dd>
	</dl>
	<input type="submit" name="authform" value="Sign In" />
</form>
</%doc>
